$def with (ogtxml, res)

<div role="article" class="coursera-body">
	<div class="container">
		<div class="coursera-full-canvas">
			<div class="row-fluid">
				<div class="span3">
					<div class="coursera-about-tabs">
						<h3 class="coursera-about-tab coursera-about-vision">
							<a href="./knowledgeman"
								class="internal-home coursera-about-tab-link">Knowledge</a>
						</h3>
						<h3 class="coursera-about-tab coursera-about-pedagogy on">
							<a href="./resourceman"
								class="internal-home coursera-about-tab-link">Resource</a>
						</h3>
					</div>
				</div>
				<div class="span9">
					<div class="coursera-about-body">
						<h2>Add Resource: $res</h2>
						<p>
						$for i,j in ogtxml.resourceForm(res).items():
							$if j == "text":
								<lable>$i</lable><input type="text" name="$i"><br/>
							$elif j == "textarea":
								<lable>$i</lable><textarea name="$i"></textarea><br/>
							$elif j == "file":
								<label>$i</label><input type="file" name="$i"><br/>
							$elif j == "option":
								<label>$i</label><select name="$i">
								$for k in ogtxml.equivalentOptions(i):
									<option value="$k">$k</option>
								</select><br/>
						</p>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
